<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>系统登录 - 超市订单管理系统</title>
<link type="text/css" rel="stylesheet"
	href="${pageContext.request.contextPath }/statics/css/style.css" />
<script type="text/javascript">
</script>
</head>
<body class="login_bg">
	<section class="loginBox">
		<header class="loginHeader">
			<h1>中兴ERT家具管理系统</h1>
		</header>
		<section class="loginCont">
			<form class="loginForm"
				action="jiajulogin"
				name="actionForm" id="actionForm" method="post">
				
				<div class="inputbox">
					<label for="user">用户名：</label> <input type="text"
						class="input-text" id="username" name="username" placeholder="请输入用户名"
						required />
				</div>
				<div class="inputbox">
					<label for="mima">密码：</label> <input type="password"
						id="userPassword" name="password" placeholder="请输入密码" required />
				</div>
				<div class="subBtn">

					<input type="submit" value="登录" /> <input type="reset" value="重置" />
				</div>
			</form>
		</section>
	</section>
	<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript">
	
	$(function(){
	$("#username").on("blur",function(){
	   var aa=this.value;
	   if(aa==null || aa==""){
	   
	   alert("用户名不为空");
	   }{
	   
	   $.ajax({
	   
	   
	url:"verityAjax",
	type:"get",
	data:"username="+aa,
	 success:callback
	   
	   
	   });
	   function callback(sss){
	   if(sss>0){
	   
	   alert("用户名存在可以登录");
	   }else{
	   
	   alert("用户名不存在请返回到登录界面");
	   }
	   
	   }
	   
	   
	   }
	
	
	});
	
	
	});
	
	</script>
	
</body>
</html>
